// 1.使用vue所以必须导入
import Vue from 'vue';

//2.导入路由
import  VueRouter from 'vue-router';
Vue.use(VueRouter);

/*3.导入vue-resource*/
import vueResource from 'vue-resource';
Vue.use(vueResource);

//4.项目的整体样式
import '../../statics/css/base.css'
import '../../statics/css/animate.min.css'
import '../../statics/css/home.css'
import '../../statics/css/main.css'
import '../../statics/css/public.css'
import '../../statics/css/swiper.min.css'

//5.第三方库
//5.1导入 mint-ui
import   'mint-ui/lib/style.min.css'
import  mui from 'mint-ui';
Vue.use(mui);

//6.切换条
import VueAwesomeSwiper from 'vue-awesome-swiper'

// require styles
import 'swiper/dist/css/swiper.css'

Vue.use(VueAwesomeSwiper, /* { default global options } */);

import YDUI from 'vue-ydui'; /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
import 'vue-ydui/dist/ydui.rem.css';
/* 使用px：import 'vue-ydui/dist/ydui.px.css'; */

Vue.use(YDUI);
import { Confirm, Alert, Toast, Notify, Loading } from 'vue-ydui/dist/lib.rem/dialog';
/* 使用px：import { Confirm, Alert, Toast, Notify, Loading } from 'vue-ydui/dist/lib.px/dialog'; */

Vue.prototype.$dialog = {
  confirm: Confirm,
  alert: Alert,
  toast: Toast,
  notify: Notify,
  loading: Loading,
};

// 5.2导入mui的css样式
import '../../statics/mui/css/icons-extra.css'
import '../../statics/mui/css/mui.css'
import '../../statics/mui/css/iconfont.css'/*加多一个字体图标库*/
import '../../statics/mui/js/mui.min'

//5.3定义一个全局过滤器实现日期的格式化
import moment from 'moment';
Vue.filter('datefmt',function(input,fmtstring){
//	使用momentjs这个日期格式化类库实现日的格式化功能
  return moment(input).format(fmtstring);
});


//设置rem
import remAndPoneConfig from "../kits/remConfig.js";
remAndPoneConfig();


// 5.4.0 使用图片预览组件
//import VuePreview from 'vue-preview';
//Vue.use(VuePreview);


//7.导入组件
import  home from '../components/Home.vue'; /*首页*/

import useList from '../components/zzjg/useList.vue';/*首页头部组织架构*/
import carousel from '../components/lbt/carousel.vue';/*首页轮播图*/

import  studyList from  '../components/xxyd/studyList.vue';/*首页学习原地*/
import  studyInfo from  '../components/xxyd/studyInfo.vue';/*首页学习原地详情*/

import  boutiquelist from  '../components/boutique/boutiquelist.vue';/*首页制度汇编*/
import  boutiqueinfo from  '../components/boutique/boutiqueinfo.vue';/*首页制度汇编详情*/
import  regulatoryFramework from  '../components/boutique/regulatoryFramework.vue';/*首页制度汇编规章制度*/

import  phonelist from '../components/phones/phonelist.vue';/*首页移动党校*/
import  phoneinfo from '../components/phones/phoneinfo.vue';/*首页移动党校详情*/

import  activitylist from '../components/activity/activitylist.vue';/*首页以考促学*/
import  activityinfo from '../components/activity/activityinfo.vue';/*首页以考促学详情*/
import  interiorExamination from '../components/activity/interiorExamination.vue';/*首页以考促学详情*/

import dynamicNewsList from '../components/dynamicNews/dynamicNewsList.vue' /*首页动画翻滚新闻条*/
import newsInfo from '../components/dynamicNews/newsInfo.vue'/*首页动画翻滚新闻条详情*/

import grandStage from '../components/xzbdwt/grandStage.vue'/*首页小支部 大舞台*/
import smallBranch from '../components/xzbdwt/smallBranch.vue'/*首页小支部 大舞台中控板*/
import temBranch from '../components/xzbdwt/temBranch.vue'/*首页小支部香洲区党支部*/
import listBranch from '../components/xzbdwt/listBranch.vue'/*首页小支部金湾区党支部*/
import listDistrict from '../components/xzbdwt/listDistrict.vue'/*首页小支部斗门区党支部*/

import classicsAll from '../components/jdfc/classicsAll.vue'/*首页经典风采全部*/
import classicsInfo from '../components/jdfc/classicsInfo.vue'/*首页经典风采中控面板*/
import fairnessBranch from '../components/jdfc/fairnessBranch.vue'/*首页最美身边人*/
import modelBranch from '../components/jdfc/modelBranch.vue'/*首页执法标兵*/
import civilizationBranch from '../components/jdfc/civilizationBranch.vue'/*首页文明使者*/

import partyMemberList from '../components/dyff/partyMemberList.vue'/*首页党员服务全部*/
import partyMemberInfo from '../components/dyff/partyMemberInfo.vue'/*首页党员服务控面板*/
import activityInform from '../components/dyff/activityInform.vue'/*首页活动通知*/
import partyMembershipDues from '../components/dyff/partyMembershipDues.vue'/*首页党费收支情况*/
import partyAffairs from '../components/dyff/partyAffairs.vue'/*首页党务工作信息*/


 import partyAspirationsList from '../components/dyxs/partyAspirationsList.vue'/*首页党员心声*/
import partyAspirationsInfoPanel from '../components/dyxs/partyAspirationsInfoPanel.vue'/*首页党员心声中控面板*/
 import partyAspirationsInfo from '../components/dyxs/partyAspirationsInfo.vue'/*首页党员心声*/

import pioneerForumList from '../components/xflt/pioneerForumList.vue'/*首页先锋论坛*/
import pioneerForumInfo from "../components/xflt/pioneerForumInfo.vue"/*首页先锋论坛中控面板*/
import pioneerForumAll from "../components/xflt/pioneerForumAll.vue"/*首页先锋论坛全部*/
import pioneerForumPost from '../components/xflt/pioneerForumPost.vue'/*首页先锋论坛帖子*/

const router=new VueRouter({
  linkActiveClass:'mui-active',
  'routes':[
    {path:'/',redirect:'/home'},/*默认首页*/
    {path:'/home',component:home},/*首页*/

    {path:'/zzjg/useList',component:useList},/*首页头部组织架构*/
    {path:'/lbt/carousel/:id',component:carousel},/*首页轮播图*/

    {path:'/xxyd/studyList',component:studyList},/*首页学习原地*/
    {path:'/xxyd/studyInfo',component:studyInfo},/*首页学习原地详情*/

    {path:'/boutique/boutiquelist',component:boutiquelist},/*首页制度汇编*/
    {path:'/boutique/boutiqueinfo/:id',component:boutiqueinfo},/*首页制度汇编详情*/
    {path:'/boutique/regulatoryFramework/:id',component:regulatoryFramework},/*首页制度汇编规章制度*/

    {path:'/phones/phonelist',component:phonelist},/*首页移动党校*/
    {path:'/phones/phoneinfo/:id',component:phoneinfo},/*首页移动党校详情*/

    {path:'/activity/activitylist',component:activitylist},/*首页以考促学*/
    {path:'/activity/activityinfo/:id',component:activityinfo},/*首页以考促学详情*/
    {path:'/activity/interiorExamination',component:interiorExamination},/*首页以考促学详情*/


    {path:'/dynamicNews/dynamicNewsList',component:dynamicNewsList},/*首页动画翻滚新闻条*/
    {path:'/dynamicNews/newsInfo/:id',component:newsInfo},/*首页动画翻滚新闻条详情*/

    {path:'/xzbdwt/grandStage',component:grandStage},/*首页小支部 大舞台*/
    {path:'/xzbdwt/smallBranch/',component:smallBranch },/*首页小支部 大舞台大舞台中控板*/
    {path:'/xzbdwt/temBranch/',component:temBranch},/*首页小支部香洲区党支部*/
    {path:"/xzbdwt/listBranch/",component:listBranch},/*首页小支部金湾区党支部*/
    {path:"/xzbdwt/listDistrict/",component:listDistrict},/*首页小支部斗门区党支部*/

    {path:"/jdfc/classicsAll",component:classicsAll},/*首页经典风采全部*/
    {path:"/jdfc/classicsInfo/",component:classicsInfo},/*首页经典风采中控面板*/
    {path:"/jdfc/fairnessBranch/",component:fairnessBranch },/*首页最美身边人*/
    {path:"/jdfc/modelBranch/",component:modelBranch},/*首页执法标兵*/
    {path:"/jdfc/civilizationBranch/",component:civilizationBranch},/*首页文明使者*/

    {path:"/dyff/partyMemberList",component:partyMemberList},/*首页党员服务全部*/
    {path:"/dyff/partyMemberInfo/",component:partyMemberInfo},/*首页党员服务控面板*/
    {path:"/dyff/activityInform/",component:activityInform},/*首页活动通知*/
    {path:"/dyff/partyMembershipDues/:id",component:partyMembershipDues},/*首页党费收支情况*/
    {path:"/dyff/partyAffairs/:id",component:partyAffairs},/*首页党务工作信息*/


    {path:"/dyxs/partyAspirationsList",component:partyAspirationsList},/*首页党员心声*/
    {path:"/dyxs/partyAspirationsInfoPanel",component:partyAspirationsInfoPanel},/*首页党员心声中控面板*/
    {path:"/dyxs/partyAspirationsInfo/",component:partyAspirationsInfo},/*首页党员心声*/


    {path:"/xflt/pioneerForumList",component:pioneerForumList},/*首页先锋论坛*/
    {path:"/xflt/pioneerForumInfo",component:pioneerForumInfo},/*首页先锋论坛中控面板*/
    {path:"/xflt/pioneerForumAll",component:pioneerForumAll},/*首页先锋论坛全部*/
    {path:"/xflt/pioneerForumPost",component:pioneerForumPost},/*首页先锋论坛帖子*/
  ]
});
export default router
